package com.gzhu.knowledgeAdmin.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzhu.knowledgeAdmin.common.vo.RuleVo;
import com.gzhu.knowledgeAdmin.entity.Rule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 规则表
 * 
 * @author yangminggui
 * @email giaogiao@gmail.com
 * @date 2024-01-25 23:16:07
 */
@Mapper
public interface RuleDao extends BaseMapper<Rule> {

    Page<RuleVo> selectRulePage(@Param("page") Page<RuleVo> page, @Param("ew")QueryWrapper<RuleVo> wrapper);

    Rule selectRuleById(@Param("id") Integer id);
}
